package com.imooc.newretail.bpl.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 用户授权表,主要记录用户与角色的关联信息
 * </p>
 *
 * @author Hank
 * @since 2020-06-27
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("SYS_USER_AUTHORITY")
public class UserAuthority implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId("USER_AUTHORITY_ID")
    private String userAuthorityId;

    @TableField("USER_ID")
    private String userId;

    @TableField("ROLE_ID")
    private String roleId;


}
